<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<button type="button" class="btn btn-info" onclick="handle('backup')">添加备份</button>
                <div class="table-responsive">
                    <table class="table table-striped">
                      <thead>
                        <tr>
                          <th>序号</th>
                          <th>备份名称</th>
                          <th>备份时间</th>
                          <th>备份大小</th>
                          <th>操作</th>
                        </tr>
                      </thead>
                      <tbody>
                      {volist name="list" id="vo"}
                        <tr>
                          <th scope="row">{$key}</th>
                          <td>{$vo.name}</td>
                          <td>{$vo.time}</td>
                          <td>{$vo.size}</td>
                          <td>
                          <a class="btn btn-xs btn-success" href="{:url('bak',['tp'=>'dowonload','name'=>$vo.name])}">下载</a>
                          <button type="button" class="btn btn-xs btn-warning" onclick="handle('restore','{$vo.name}')">还原</button>
                          <button type="button"  class="btn btn-xs btn-danger" onclick="handle('del','{$vo.name}')">删除</button>
                          </td>
                        </tr>    
                        
                      {/volist}
                      
                        
                      </tbody>
                    </table>
            </div>
            <script>
            	 function handle(tp,name=''){        
        if (tp){
            $.post("{:url('admin/backups/bak')}",{tp:tp,name:name},function(response){
                if (response){
                    jSuccess(response, {VerticalPosition: 'center',HorizontalPosition: 'center'}); 
                }else{
                    jError("操作失败，请重试!!", {VerticalPosition: 'center',HorizontalPosition: 'center'});
                }
    
            }); 
        }
    }
            </script>
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>